feat: add base44 validate command for resource config files#411
Open
base44-os-gremlins[bot] wants to merge 1 commit intomainfrom
Open
feat: add base44 validate command for resource config files#411base44-os-gremlins[bot] wants to merge 1 commit intomainfrom
base44 validate command for resource config files#411base44-os-gremlins[bot] wants to merge 1 commit intomainfrom
Conversation
Adds a new \`base44 validate\` command that discovers all resource config files in the project's base44/ folder and validates each against its Zod schema, collecting all errors before exiting. - Validates entities, functions, agents, and connectors - Prints per-file pass/fail with field-level error details - Exits with code 1 when any validation errors are found (CI-safe) - Does not require authentication -- safe to run anywhere - Includes 9 integration tests covering all resource types and edge cases Relates to: https://github.com/base44-dev/gremlins/issues/870 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/cli@0.0.44-pr.411.fe4049cPrefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/cli@0.0.44-pr.411.fe4049c"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/cli@0.0.44-pr.411.fe4049c"
}
}
Preview published to npm registry — try new features instantly! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
base44 validatecommand that discovers all resource config files in the project'sbase44/folder and validates each against its Zod schemaExample output
Test plan
bun run typecheckpassesbun run lintpasses (no new errors)Relates to
Goal #870: https://github.com/base44-dev/gremlins/issues/870
🤖 Generated with Claude Code